#include "../include/level.hpp"
#include <iostream>
#include <cassert>

using namespace easylog;

void test()
{
    std::cout << level::level2str(level::debug) << std::endl;
    std::cout << level::str2level("DEBUG") << std::endl;
    std::cout << level::level2str(level::info) << std::endl;
    std::cout << level::str2level("INFO") << std::endl;
    std::cout << level::level2str(level::warn) << std::endl;
    std::cout << level::str2level("WARN") << std::endl;
    std::cout << level::level2str(level::error) << std::endl;
    std::cout << level::str2level("ERROR") << std::endl;
    std::cout << level::level2str(level::fatal) << std::endl;
    std::cout << level::str2level("FATAL") << std::endl;
}

#define TEST \
                1

int main()
{
    switch (TEST)
    {
        case 1: test(); break;
        default: assert(false);
    }

    return 0;
}
